home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
CDEF-DeBugger 2.0 ƒ
/
MenuBar.c
< prev
next >
Wrap
Text File
|
1995-05-31
|
610b
|
23 lines
// prototypes
void DrawTheMenuBar( void );
// globals
MenuHandle gAppleMenu;
/******************************************************************
Set up the menus and the menu bar
******************************************************************/
void DrawTheMenuBar( void )
{
Handle myMenuBar;
myMenuBar = GetNewMBar( 128 ); //This allocates storage for, and reads in a menu list from a MBAR res
SetMenuBar( myMenuBar ); //This installs a menu list (a list of handles to menus)
gAppleMenu = GetMHandle( MENU_APPLE );
AddResMenu( gAppleMenu, 'DRVR' );
DrawMenuBar();
}